function() {
this._overviewVisible = false;
this._escapeTray();
- this.actor.remove_style_pseudo_class('overview');
this._updateState();
}));
this._tween(this.actor, '_trayState', State.HIDDEN,
{ y: 0,
time: ANIMATION_TIME,
- transition: 'easeOutQuad'
+ transition: 'easeOutQuad',
+ onComplete: this._onTrayHidden,
+ onCompleteScope: this
});
// Note that we might have entered here without a grab,
this._lightbox.hide();
},
+ _onTrayHidden: function() {
+ if (!this._overviewVisible)
+ this.actor.remove_style_pseudo_class('overview');
+ },
+
_hideDesktopClone: function(now) {
this._tween(this._desktopClone, '_desktopCloneState', State.HIDDEN,
{ y: 0,